<div id="container_content">
    <div id="ad_main_name">
        <h2>Log In Or Create An Account</h2>
    </div>
    <div id="regsiter_holder_page">
        <div id="register_user_dealer">
            <h2>Register New User or Dealer</h2>
            <p>
                By creating an account with our car sales platform, you will be able to add your cars and parts for
                sale, manage your ads, browse products and dealers and much more.
            </p>
            <div id="create_account_button_holder">
                <ul>
                    <li>
                        <div id="create_dealer_acount_button" class="red">
                            <a href="?p=register&at=d">Create Dealer Account</a>
                        </div>
                    </li>
                    <li class="or" style="color:black; padding-left:5px; padding-top:4px;">or</li>
                    <li>
                        <div id="create_user_acount_button" class="blue">
                            <a href="?p=register">Create User Account</a>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <div id="login_user_dealer">
            <form method="POST" action="?p=login">
            <?php
                if($_SESSION['is_logged'] === true) {
                    echo "<h2>Log in As Another User</h2>";
                } else {
                    echo "<h2>Log in As User or Dealer</h2>";
                }
            ?>
            <p>
                If you have an account with us, please log in.
            </p>
            <div class="login_user_dealer_reg_page">
                <div class="name_email_seller" id="login_user_dealer_input">
                    <h3>Email</h3>
                    <label for="email"></label> <input type="text" name="email" id="email"/> <br/>
                </div>
                <div class="name_email_seller" id="login_user_dealer_input1">
                    <h3>Password</h3>
                    <label for="pass"></label> <input type="password" name="pass" id="pass"/> <br/>
                </div>
            </div>
            <div id="login_user_dealer_button">
                <!-- PLEASE REMOVE THIS LINE, NEEDS TO BE FORM SUBMIT OR IMAGE -->
                <input type="image" src="img/registration_button.png" value="Login" name="submit"/>
            </div>
            </form>
            <span class="forgotten_pwd_span"><a href="#">Forgotten Password</a></span>
        </div>
    </div>

    <!-- HIDDEN DIV FOR FORGOTTEN PASSWORD -->
    <div class="forgotten_pwd">
        <h4>Please fill in the details below to reset your password.</h4>
        <form action="?p=login" method="POST">
            <span class="sanity_rows"><label for="email">Registered Email:</label><input type="text" name="email" id="email"/></span>
            <?php
                $num1 = mt_rand(0, 9);
                $num2 = mt_rand(0, 9);
                echo '<input type="hidden" name="sanity_check_base" value="'.($num1+$num2).'"/><br/>';
                echo "<span class='sanity_rows'>".$num1." + ".$num2." = ";
            ?>
            <label for="sanity_check"></label><input type="text" name="sanity_check" id="sanity_check"/></span>
            <span class="sanity_rows"><input type="submit" value="Reset Password" name="submit" /></span>
        </form>
       
    </div>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        
</div>